import { Context, Next } from "koa";
import Router from "koa-router";
import UserCtl from "../controller/userCtl";
import DbUtil from "../utils/db";

const userRouter = new Router({ prefix: "/users" });

// 用户列表
userRouter.get("/list", UserCtl.list);
//用户保存
userRouter.post("/save", UserCtl.save);
userRouter.post("/delete", UserCtl.delete);
userRouter.post("/update", UserCtl.update);

export default userRouter;
